package cn.bonoon.entities;

/**
 * 性别枚举
 * @author Administrator
 *
 */
public enum Sex {
	Male("男"),
	Female("女"),
	Unknown("不限");
	
	private final String description;	
	
	Sex(String desc){
		this.description = desc;
	}
	
	public boolean contains(Sex sex){
		if(equals(Unknown)){
			return true;
		}
		return this.equals(sex);				
	}
	
	public String getDescription() {
		return description;
	}	
	
	@Override
	public String toString() {
		return description;
	}
}
